package com.seari.service;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
public class TestTask1 {
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
//	@Scheduled(cron = "0/10 * *  * * ?")
	public void doTask() {
		System.out.println("当前时间"+sdf.format(new Date()));
		System.out.println("执行定时任务。。。");
	}
}
